package com.weipai.springboot.module.service;

import com.weipai.springboot.model.GoodsCollection;
import com.weipai.springboot.model.ShopCollection;
import com.weipai.springboot.model.api.Response;

import java.util.List;

/**
 * Created by ${lyh} on 2018/8/27.
 */
public interface CollectionService {

    //收藏商品
    Response saveGoodsCollection(String customerId, String goodsId);

    Response saveShopCollection(String customerId, String shopId);

    //查询商品搜索列表
    List<GoodsCollection> selectAllByGoodsCollection(String customerId, Integer page, Integer size);
    //查询商铺搜索列表
    List<ShopCollection> selectAllByShopCollection(String customerId, Integer page, Integer size);

    //删除取消   商品收藏
    Response deleteById(String customerId, String goodsId);

    Response deleteShopById(String customerId, String shopId);

    Response allAdd(String customerId, String[] goodsId);

    //一键清空 商品收藏
    Response deleteByAll(String customerId);

    //一键清空 商店收藏
    Response deleteByAllShop(String customerId);

    Integer countByAll(String customerId);

    Response deleteByIdMore(String customerId, String[] goodsIds);

    Response varGoodsCollection(String customerId, String goodsId);
}
